//
//  MM_Custom_MutiTabMenuView.h
//  MallManage_IOS
//
//  Created by 张浩 on 2023/9/20.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class MM_Custom_MutiTabMenuView;

@protocol MM_Custom_MutiTabMenuViewDelegate <NSObject>

/* 滑动到哪一个位置 **/
- (void)mutiTabView:(MM_Custom_MutiTabMenuView *)menuView sectionViewSelectedIndex:(NSInteger)index;

@end

@interface MM_Custom_MutiTabMenuView : UIView

/**  类型  */
@property (nonatomic, assign) BOOL sameDivide;
//靠左显示
@property (nonatomic, assign) BOOL is_Left;
/**  不等分的时候间距,默认40  */
@property (nonatomic, assign) CGFloat noDivideSpace;

//@property (nonatomic, strong) UIFont *titleFont;;
@property (nonatomic,copy) NSArray * titleArr;

/** 滚动条长度 优先级 **/
@property (nonatomic, assign) CGFloat lineViewSameH;

/** 滚动条长度是否等分 **/
@property (nonatomic, assign) BOOL lineViewSameW;
/** 滚动条高度 **/
@property (nonatomic, assign) CGFloat lineView_h;

//是否隐藏底部的线条
@property (nonatomic, assign) BOOL currentHiddenLine;

@property (nonatomic,weak) id <MM_Custom_MutiTabMenuViewDelegate>delegate;

@property (nonatomic,strong) UIColor * selectedColor;
/**  选中字体  */
@property (nonatomic, strong) UIFont * selectedFont;
/**  默认子图  */
@property (nonatomic, strong) UIFont * normalFont;
@property (nonatomic,strong) UIColor * normalColor;
/** 是否隐藏顶部和底部线条 默认显示 **/
@property (nonatomic, assign) BOOL isHiddenLineView;

//针对于商品详情页面的 默认不需要
@property (nonatomic, assign) BOOL is_Change;
/* 滑动到 某个地方 **/
- (void)setupSelectedIndex:(NSInteger)index;

//获取当前位置
- (NSInteger)getSelectedIndex;

/* 设置某个位置的未读数  **/
- (void)setupMessageRedCount:(NSInteger)redCount
                   withIndex:(NSInteger)index;

/** 设置某个位置是否显示小红点标记 **/
- (void)setupRedSign:(BOOL)isShow withIndex:(NSInteger)index;
/**
 设置总数

 @param totalCount 总数
 @param index 第几个
 */
- (void)setupTotalCount:(NSInteger)totalCount withIndex:(NSInteger)index;

@end

NS_ASSUME_NONNULL_END
